home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
libs
/
newlooklib.lha
/
newlook
/
setgflags.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-03
|
469b
|
23 lines
/*
* SETGFLAGS.C
*/
#include "newlook.h"
extern UWORD AddGadget( struct Window *, struct Gadget *, UWORD );
extern VOID RefreshGList( struct Gadget *, struct Window *, struct Requester *, UWORD );
void SetGFlags(w,g,flags)
struct Window *w;
struct Gadget *g;
UWORD flags;
{
USHORT pos= RemoveGadgetSafely(w,g);
g->Flags= flags;
if(pos!=0xFFFF) /* 0xFFFF == (-1) did we really remove the gadget? */
AddGadget(w,g, pos);
RefreshGList(g,w,NULL,1L);
}